const low = require('lowdb');
const FileSync = require('lowdb/adapters/FileSync');
const path = require('path');

const filePath = path.join(__dirname, '../../data/db.json');
const adapter = new FileSync(filePath);
const db = low(adapter);

db.defaults({ users: [] }).write();

module.exports = db;
